package com.example.naodian.domain.po;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("warning")
public class Warning implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 主键，自增

    private Long userId; // 关联用户id

    private Integer type; // 预警类型（1:疲劳预警/2:分心预警）

    private String des; // 预警描述信息

    private Long eegRecordingId; // 关联的记录的Id

    private LocalDateTime createdAt; // 创建时间

    private List<EegDataBlock> eegDataBlockList;// 关联的eeg数据块
}
